package org.wycash.Test;

import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.*;

import org.hamcrest.core.Is;
import org.junit.Test;
import org.wycash.object.Expression;
import org.wycash.object.Money;


public class Multiplication {

	@Test
	public void testMultiplication() {
		Expression five = Money.dollar(5);
		assertEquals(five.times(2), Money.dollar(10));
		assertEquals(five.times(3), Money.dollar(15));
	}

	@Test
	public void testFrancMultiplication() {
		Expression five = Money.franc(5);
		assertEquals(five.times(2), Money.franc(10));
		assertEquals(five.times(3), Money.franc(15));
	}
}
